import random


class Game:
    # 定义类属性
    top_score = 0

    def __init__(self, name):
        self.player_name = name

    @staticmethod
    def show_help():
        print("游戏帮助信息")

    @classmethod
    def show_top_score(cls):
        print(f"这里显示最高分:{cls.top_score}")

    def start_game(self):
        print(f"{self.player_name}玩家开始游戏")
        score = random.randint(10, 100);
        print(f" 玩家 {self.player_name} 本次游戏得分为 {score}")
        if score > Game.top_score:
            Game.top_score = score;


if __name__ == '__main__':
    Game.show_help()
    Game.show_top_score()
    play = Game("小王")
    play.start_game()
    Game.show_top_score()
    play.start_game()
    Game.show_top_score()
